icon helper: Don't set baseline to 0
authorMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2016 18:18:02 +0000 (13:18 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 25 Feb 2016 18:18:02 +0000 (13:18 -0500)
It is clearly not the intention that the baseline of icons is at
the very top. The visible effect of this was that spin buttons were
higher than expeted, because the box gadget was trying to line up
the baseline of the text with the top of the buttons, forcing extra
height to be requested.

Just don't set a baseline at all for now.

gtk/gtkiconhelper.c

index 2ee91e89711fcdb175a96b189287de7a7f59f3f3..43e6f673ea1bc94236b8ef3e5b2f8761ff289e96 100644 (file)
@@ -123,11 +123,6 @@ gtk_icon_helper_get_preferred_size (GtkCssGadget   *gadget,
     *minimum = *natural = icon_width;
   else
     *minimum = *natural = icon_height;
-
-  if (minimum_baseline)
-    *minimum_baseline = 0;
-  if (natural_baseline)
-    *natural_baseline = 0;
 }
 
 static void